
import com.huawei.authapk.SDKMgr;
import com.zte.iptvclient.android.androidsdk.SDKLoginMgr;

class Listt implements SDKLoginMgr.ILoginReturnListener {
    public void onLoginReturn(String strErrorCode, String strErrorMsg)
    {   
        System.out.println("<< LoginReturn >> " + strErrorCode + ":" + strErrorMsg);
    }   
    public void onLogoutReturn(String strErrorCode, String strErrorMsg)
    {   
        System.out.println("<< LogoutReturn >> " + strErrorCode + ":" + strErrorMsg);
    }   
}

public class MainTest {

	public static void main(String[] args)
	{
        System.out.println("main");

        SDKMgr.initSDK();
        SDKLoginMgr lm = SDKLoginMgr.getInstance();
        lm.setLoginReturnListener(new Listt());
        lm.initLogin("1", "124.207.21.141", "b8:88:e3:fa:84:a4", "00100299006020111328201HWC203653");
        lm.startLogin("12", "12");
        String res = lm.getUserInfo("UserToken");
        System.out.println("UserToken = " + res);
        
        SDKMgr.destroySDK();
	}
}
